<template>
  <div class="pay_box">
    <div class="cost-button" :class="{ cost_active: flog == 1 }" @click="getActive(1)">退药明细列表</div>
    <comm :is="activeName"></comm>
  </div>
</template>
<script>
import RefundMedicineDetail from "./refundMedicineDetail";
export default {
  data() {
    return {
      activeName: "RefundMedicineDetail",
      flog: 1
    };
  },
  mounted() {},
  methods: {
    getActive(type) {
      this.flog = type;
      switch (type) {
        case 1:
          this.activeName = "RefundMedicineDetail";
          break;
      }
    }
  },
  components: {
    RefundMedicineDetail
  }
};
</script>
<style lang="scss" scoped>
.pay_box {
  margin: 10px 0px;
  display: inline-block;
  width: 100%;
}
.pay_date {
  width: 10% !important;
  margin-right: 1%;
}
.cost-button {
  display: inline-block;
  width: 120px;
  margin-right: 15px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  height: 34px;
  line-height: 32px;
}
.cost_active {
  border-color: #1ab394;
  color: #1ab394;
}
</style>
